<script type="text/javascript">
	$(document).ready(function(){
		$("#reg_submit").click( function () {
			var args = new Object();
			args['username'] = $('input:text[name="username"]').val();
			args['password'] = $('input:password[name="password"]').val();
			args['sex'] = $('input:radio[name="sex"]:checked').val();
			var data = ajax_call('account', 'register', args, success_reg);
		});
		$("#to_login").click( function () {
			$("#main").load('login.html');
		});
	});
	function success_reg(ret) {
		Utils.setCookie("acc_key", ret.key);
		get_user_info();
	}
</script>
<div class="reg_form" align="center">
	<div align="left">注册</div>
	<div>
		<div class="posfloatl field">用户名：</div>
		<div class="posfloatl"><input name='username' type="text" class="input100" required /></div>
	</div>
	<div class="posclear">
		<div class="posfloatl field">密码：</div>
		<div class="posfloatl"><input name='password' type="password" class="input100" required /></div>
	</div>
	<div class="posclear">
		<div class="posfloatl field">性别：</div>
		<div class="posfloatl"><input type="radio" name="sex" value="1" checked />男
	<input type="radio" name="sex" value="2" />女</div>
	</div>
	<div class="posclear"></div>
	<input id='reg_submit' type="button" value="注册" />  <input id='to_login' type="button" value="返回" />
</div>
